#ifndef __STATSELECTOR_H__
#define __STATSELECTOR_H__

#include "base/Entity.h"
#include "util/Pool.h"

class StatsElector : public Entity {
  public:
    NEW_DELETE_OPERATORS_INLINE_H(StatsElector,Entity);
    StatsElector () : Entity("StatsElector", CLOCK_WITH_STATISTICS) {}
    ~StatsElector () {}

    void tick () {
        if (global_sim->cfg.stats_enabled) {
            global_sim->statsCountVotes();
        }
    }
};

#endif
